//
//  GGDeviceControlPanelViewController.m
//  DDLock
//
//  Created by ios on 2017/12/29.
//  Copyright © 2017年 saiyi. All rights reserved.
//

#import "GGDeviceControlPanelViewController.h"
#import "GGDeviceManagementViewController.h"

@interface GGDeviceControlPanelViewController ()

@property (weak, nonatomic) IBOutlet UIView *backView;
@property (weak, nonatomic) IBOutlet UILabel *energyLabel;
@property (weak, nonatomic) IBOutlet UIImageView *lockImageView;
@property (weak, nonatomic) IBOutlet UIButton *playLockBtn;
@property (weak, nonatomic) IBOutlet UIButton *keyBtn;



@end

@implementation GGDeviceControlPanelViewController

- (void)setDidLoad {
    
    self.title = @"控制面板";
    
    self.backView.layer.cornerRadius =  10.0f;
    self.backView.layer.shadowOpacity = 0.2;
    self.backView.layer.shadowColor = [UIColor blackColor].CGColor;
    self.backView.layer.shadowRadius = 10.0f;
    self.backView.layer.shadowOffset = CGSizeMake(3, 3);
    
    self.playLockBtn.layer.cornerRadius = 10.0f;
    self.playLockBtn.layer.masksToBounds = YES;
    self.keyBtn.layer.cornerRadius = 10.0f;
    self.keyBtn.layer.masksToBounds = YES;
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"jurisdiction"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStyleDone target:self action:@selector(management)];
    
    
    
}

- (void)setWillAppear {
    [super setWillAppear];
    
}
// 开锁
- (IBAction)clickPlayLockBtn:(UIButton *)sender {
    
    
}
// 生成密钥
- (IBAction)clickKeyBtn:(UIButton *)sender {
    
    
}


// 权限管理
- (void)management {
    
    GGDeviceManagementViewController *manageVC = [[GGDeviceManagementViewController alloc] init];
    [self.navigationController pushViewController:manageVC animated:YES];
    
}

@end
